<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>background</title>
    <style>
      .c1 {
        height: 900px;
        background: red
          url();
        background-repeat: no-repeat;
        /* 位置控制 */
        /* background-position: center top; */
        /* background-position: 20px 30px; */
        /* 大小控制 */
        /* background-size:100px 50px; */
      }
      .c2 {
        width: 20px;
        height: 20px;
        background: url(./test_bg.png) no-repeat;
        background-position: -17px -5px;
        background-size: 261px 113px;
      }
      .c3 {
        width: 20px;
        height: 20px;
        background: url(./test_bg.png) no-repeat;
        background-position: -169px -23px;
        background-size: 261px 113px;
      }
    </style>
  </head>
  <body>
    <div class="c1"></div>
    <div class="c2"></div>
    <div class="c3"></div>
  </body>
</html>
